/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __QS_StockScreenerWidget_H__
#define __QS_StockScreenerWidget_H__

#include <QtCore/QTimer>
#include <QtGui/QApplication>
#include <QtGui/QWidget>
#include <QtGui/QLineEdit>
#include <QtGui/QTableWidget>

#include "Prerequisites.h"

namespace QSThink
{
	/*This class is used to view stock basic info and for choose stock.
	*/
	class StockScreenerWidget : 
		public QWidget
	{
		Q_OBJECT

	public:
		StockScreenerWidget(QWidget *parent=0,Qt::WindowFlags flag=0);
		virtual ~StockScreenerWidget();
	protected:
		QTableWidget* _dataTable;
		QLineEdit* _lineEditAddSymbol;

	public slots:
		void loadSymbols();
		bool headerColumnPressed( int col );
		bool addSelectedSymbol();
	protected:
		QComboBox* _comboCulture;
		QComboBox* _comboExchange;
		QComboBox* _comboSector;


	};
}
#endif
